/*
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 */

package org.apache.airavata.metcat.parser;

public class IndexAttribute {

	private String XPath = null;
	private String label = null;
	private boolean isIndex = true;
	private boolean isOptional = true;
	private int tag = 0;
	
	public IndexAttribute() {
	}
	
	public IndexAttribute(String label, String xpath) {
		this(label, xpath, true, true);
	}
	
	public IndexAttribute(String label, String xpath, boolean isIndex) {
		this(label, xpath, isIndex, true);
	}
	
	public IndexAttribute(String label, String xpath, boolean isIndex, boolean optional) {
		this.label = label;
		this.XPath = xpath;
		this.isIndex = isIndex;
		this.isOptional = optional;
	}
	
	public String getLabel() {
		return label;
	}
	
	public String getXPath() {
		return XPath;
	}
	
	public boolean isIndex() {
		return isIndex;
	}
	
	public void setIndex(boolean isIndex) {
		this.isIndex = isIndex;
	}
	
	public void setLabel(String label) {
		this.label = label;
	}
	
	public void setXPath(String xPath) {
		XPath = xPath;
	}
	
	public boolean isOptional() {
		return isOptional;
	}
	
	public void setOptional(boolean isOptional) {
		this.isOptional = isOptional;
	}
	
	public void setTag(int tag) {
		this.tag = tag;
	}
	
	public int getTag() {
		return tag;
	}
	
}
